#!/bin/bash
#trim_write_cache runs once a night to remove old data from the .write_cache 
#file.
date_to_remove=`date -d "5 days ago" "+%Y-%m-%d"`
sed -i "/$date_to_remove/d" "/home/aqdms/CARBLog/resources/Picarro_drv/.write_cache" 
exit
